package jwlee.testproxy.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class TestHelloWorld {
	public static void main(String[] args) {

		// 通过ApplicationContext获取XML

		ApplicationContext actx = new ClassPathXmlApplicationContext("jwlee/testproxy/aop/config.xml");
		// ApplicationContext actx=new FileSystemXmlApplicationContext("config.xml");

		TimeBookInterface timeBookProxy = (TimeBookInterface) actx.getBean("logProxy");

		timeBookProxy.doAuditing("张三审核数据");
		timeBookProxy.updateAudit("李四修改数据");
		// FinanceInterface financeProxy = (FinanceInterface)actx.getBean("logProxy1");
		// financeProxy.doCheck("李四");

	}

}
